import { ss } from "@/utils/storage"

const USER_LOCAL_NAME = "user";

export function getLocalUserState(): User.saveUserInfo {
    const localStateUser = ss.get(USER_LOCAL_NAME);
    return localStateUser;
}

export function setLocalUserState(state: User.saveUserInfo) {
    ss.set(USER_LOCAL_NAME, state);
}

export function removeUserState() {
    ss.remove(USER_LOCAL_NAME);
}
